<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
</head>
<body>
    <div id="app">
        <h1>创科学习{{msg}}</h1>
        <test></test>
        <my-comp></my-comp>

    </div>
    <template id="root">
        <ul>
            <li>中国</li>
            <li>美国</li>
            <li>日本</li>
            <li>德国</li>
            <li>法国</li>
            <li>{{info}}</li>
        </ul>
    </template>
    <script>
        Vue.component('test',{
            template:`<h1>学习,{{info}}</h1>`,
            data(){
                return{
                    info:"you can you up,not can not bb"
                }
            }
        });
        Vue.component('myComp',{
            template:`#root`,
            data(){
                return{
                    info:'卧槽'
                }
            }
        })
        new Vue({
            el: "#app",
            data: {
                msg: "谦虚的心态",
            },
        })
    </script>
</body>
</html>